/* Carrinho */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  line-height: 2.3;
  background-image: url('./patrón\ plantas\ inspo.jpg');
  background-repeat: repeat;
  background-size: auto;
  background-attachment: fixed;
  background-position: center center;
  color: #333;
  padding-top: 80px;
  transition: background-color 0.3s, color 0.3s;


}

#Modo-escuro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff3e0;
  border: 2px solid #d2691e;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

#Modo-escuro:hover {
  background: #d2691e;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.rotate {
  animation: girar 0.5s ease;
}

@keyframes girar {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.1);
  }
}


body,
.navbar,
.resumo-carrinho,
.btn-finalizar,
.itens-carrinho p,
.item {
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-image: url('./modo\ escuro.png');
  color: #f1f1f1;
}

body.dark-mode .navbar {
  background-color: #222;
}

body.dark-mode .resumo-carrinho {
  background-color: #222;
}

body.dark-mode .btn-finalizar {
  background-color: #444;
  color: #f1f1f1;
  border-color: #f1f1f1;
}

body.dark-mode .itens-carrinho p {
  background-color: #444;
  color: white;
}

.header-banner {
  background-image: url('https://invexo.com.br/blog/wp-content/uploads/2022/11/paes-padarias-na-barra-da-tijuca-rio-de-janeiro.jpg');
  background-size: cover;
  background-position: center;
  height: 300px;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: Brush Script MT, Brush Script Std, cursive;
}

.header-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.header-conteudo {
  position: relative;
  z-index: 2;
}

.header-titulo {
  font-family: Brush Script MT, Brush Script Std, cursive;
  font-size: 60px;
  margin-bottom: 10px;
}

.header-subtitulo {
  font-family: Brush Script MT, Brush Script Std, cursive;
  font-size: 30px;
  font-weight: 400;
}

      
.navbar {
  background-color: #d2691e;
  padding: 15px 30px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.navbar-conteudo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar-logo {
  font-size: 28px;
  color: white;
  font-family: 'Brush Script MT', cursive;
  letter-spacing: 1px;
  cursor: pointer;
}


.navbar-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.navbar-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-links a:hover {
  color: #ffa200;
}

#Modo-escuro {
  margin-left: 15px;
}


@media (max-width: 768px) {
  .navbar-conteudo {
    flex-wrap: nowrap;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #d2691e;
    text-align: center;
    padding: 10px 0;
  }

  .navbar-links.active {
    display: flex;
  }

  #navbar-login-area {
    margin-top: 10px;
  }
}


.container-carrinho {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  background-color: transparent;
}

.itens-carrinho {
  width: 80%;
  max-width: 800px;
  margin-bottom: 30px;
}

.item {
  display: flex;
  justify-content: space-between;
  background-color: #f4e4d7;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.item-nome {
  font-weight: bold;
  color: #8b4513;
}

.resumo-carrinho {
  text-align: center;
  background-color: #d2691e;
  padding: 20px;
  border-radius: 15px;
  color: white;
  font-size: 20px;
  width: 300px;
}

.btn-finalizar {
  background-color: white;
  color: #d2691e;
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-finalizar:hover {
  background-color: #ffe3ca;
}

.acesso-usuario {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 10;
}

.acesso-usuario a {
  text-decoration: none;
  margin-left: 15px;
  padding: 8px 16px;
  border-radius: 10px;
  background-color: #d2691e;
  color: white;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
}

.acesso-usuario a:hover {
  background-color: #a0522d;
}

.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: transparent;
}

.login-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Estilo para cada item do carrinho */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fdf0e6;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Nome do item */
.item-nome {
  font-weight: bold;
  color: #8b4513;
  font-size: 18px;
}

/* Botão de remover (🗑) */
.item button {
  background-color: #d2691e;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.item button:hover {
  background-color: #a0522d;
}

/* Mensagem de carrinho vazio */
.itens-carrinho p {
  text-align: center;
  font-size: 20px;
  color: #a0522d;
  background-color: #fff7f0;
  padding: 20px;
  border-radius: 10px;
  font-weight: bold;
  margin-top: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.swal2-popup {
  font-family: 'Poppins', sans-serif;
  border-radius: 20px ;
  background-color: #fce8e0 ;
  color: #8b4513 ;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) ;
}

.swal2-title {
  font-family: 'Brush Script MT', cursive;
  font-size: 32px ;
  color: #a0522d ;
}

.swal2-confirm {
  background: linear-gradient(90deg, #d2691e, #ffb347);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(210, 105, 30, 0.2);
}

.swal2-confirm:hover {
  background: linear-gradient(90deg, #ff7b00, #d2691e);
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.swal2-icon {
  border-color: #2113e0 ;
  color: #2113e0;
}
